import axios from '@/utils/request' 
const baseURL="/api"
//post
export function postAction(url, parameter) {
   return axios({
       url: `${baseURL}${url}`,
       method: 'post',
       data: parameter
   })
}

//put
export function putAction(url, parameter) {
   return axios({
       url: `${baseURL}${url}`,
       method: 'put',
       data: parameter
   })
}

//get
export function getAction(url, parameter) {
   return axios({
       url: `${baseURL}${url}`,
       method: 'get',
       params: parameter
   })
}

//deleteAction
export function deleteAction(url, parameter) {
   return axios({
       url: `${baseURL}${url}`,
       method: 'delete',
       params: parameter
   })
}
